/*
 * @Author: WangShuai 1830773767@qq.com
 * @Date: 2023-12-20 22:16:30
 * @LastEditors: WangShuai 1830773767@qq.com
 * @LastEditTime: 2025-06-18 12:02:44
 * @FilePath: \vue3_admin_template\project\src\store\modules\type\types.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import type { RouteRecordRaw } from 'vue-router'
import type { CategoryObj } from '@/api/product/attr/type'
//定义小仓库states数据类型
export interface UserState {
  token: string | null
  menuRoutes: RouteRecordRaw[]
  username: string
  avatar: string
  buttons: string[]
}

//定义分类仓库state类型
export interface CategoryState {
  c1List: CategoryObj[]
  c2List: CategoryObj[]
  c3List: CategoryObj[]
  c1Id: string | number
  c2Id: string | number
  c3Id: string | number
}
